﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace LJLNet.Thread
{
    public abstract class BaseThread
    {
        protected System.Threading.Thread mThread;

        public BaseThread()
        {
            mThread = new System.Threading.Thread(Run);
        }

        public virtual void Start()
        {
            mThread.Start();
        }
        protected abstract void Run();
        public void Stop()
        {
            mThread.Abort();
        }
    }
}
